<template>
	<div class="contents">
		<van-nav-bar
		  title="确认订单"
		  left-text="返回"
		  left-arrow
		  @click-left="onClickLeft"
		/>
		<div class="content">
			<section class="immedbg">
				<router-link to="/setaddress" tag="div">
					<van-row class="addrow">
						<van-col span="20">
							<p>张三,13000000</p>
							<p class="addbody">浙江省杭州市西湖区文三路 138 号东方通信大厦 7 楼 501 室</p>
						</van-col>
						<van-col span="4">
							<span class="iconfont icon-youjiantou right-arrow"></span>
						</van-col>
					</van-row>
				</router-link>
			</section>
			<van-card
				num="2"
				tag="标签"
				price="2.00"
				desc="描述信息"  
				title="商品标题"
				:thumb="imageURL"
				origin-price="10.00"
			>
			</van-card>
			<section class="loginout">
				<van-button class="loginoutbtn" block>立即购买</van-button>
			</section>
		</div>
	</div>
</template>

<script>
import Vue from 'vue'
import { Row, Col, Cell, CellGroup, Button, NavBar, Card } from 'vant'
Vue.use(Row).use(Col).use(Cell).use(CellGroup).use(Button).use(NavBar).use(Card)

export default {
	data () {
		return {
			imageURL: require('../assets/img/build.png')
    }
	},
	methods: {
		onClickLeft () {
			this.$router.go(-1)
		}
	}
}
</script>

<style lang="scss" scoped="scoped">
@import '@/lib/reset.scss';
.immedbg {
	padding: 0 .1rem;
	margin-top: .1rem;
}
.loginout {
	padding: 0 .1rem;
	margin-top: .1rem;
	box-sizing: border-box;
}
.loginoutbtn {
	background: #f44;
	color: #fff;
}
.addbody {
	font-size: .12rem;
	color: #7d7e80;
	line-height: .24rem;
}
.addrow {
	position: relative;
}
.right-arrow {
	font-size: .25rem;
	height: 100%;
	position: absolute;
	right: 0;
	@include flexbox();
	@include justify-content();
	@include align-items();
}
</style>
